package org.example.fault.tolerant;

import org.example.model.RpcResponse;

import java.util.Map;

/**
 * @Title: FailFastTolerantStrategy
 * @Author: kunliangzhao
 * @Package org.example.fault.tolerant
 * @Date: 2025/6/23 15:54
 * @Description: 快速失败 扔给外层
 */
public class FailFastTolerantStrategy implements TolerantStrategy{

    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e){
        throw new RuntimeException("服务报错", e);
    }
}
